import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ad_x_sdk_method_channel.dart';

abstract class AdXSdkPlatform extends PlatformInterface {
  /// Constructs a AdXSdkPlatform.
  AdXSdkPlatform() : super(token: _token);

  static final Object _token = Object();

  static AdXSdkPlatform _instance = MethodChannelAdXSdk();

  /// The default instance of [AdXSdkPlatform] to use.
  ///
  /// Defaults to [MethodChannelAdXSdk].
  static AdXSdkPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AdXSdkPlatform] when
  /// they register themselves.
  static set instance(AdXSdkPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<void> initSDK(Map<String, dynamic> params);

  Future<void> initRewardAdLoader(Map<String, dynamic> params);

  Future<void> loadRewardAd();

  Future<void> showRewardAd();

  Future<void> loadAndShowRewardAd();

  Future<void> initInterstitialAdLoader(Map<String, dynamic> params);

  Future<void> loadInterstitialAd();

  Future<void> showInterstitialAd();

  Future<void> loadAndShowInterstitialAd();
}
